package com.young.pattern.factoryMethodPattern;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DatabaseLoggerFactory extends LoggerFactory{
    @Override
    public Logger createLog() {
        Logger logger = new DatabaseLogger();
        log.info("创建数据库日志.....");
        return logger;
    }
}
